/*
 * Powered By XY
 * Since 2020
 */

package com.xy.biz.xd.manager;

import java.util.Collection;
import java.util.List;

import com.xy.biz.xd.domain.bo.DocumentFlowBO;
import com.xy.biz.xd.domain.bo.DocumentFlowHandleUserBO;
import com.xy.biz.xd.domain.query.DocumentFlowQuery;
import com.xy.biz.xd.domain.req.SaveDocumentFlowHandleUserRequest;

/**
 *
 *
 * @author zsp
 * @date 2021-1-22
 */
public interface DocumentFlowManager {

	/**
	 * 保存
	 *
     * @param documentFlowBO
     * @return
     */
	int saveDocumentFlow(DocumentFlowBO documentFlowBO);

	/**
	 * 保存
	 *
     * @param collection
     * @return
     */
	int saveAllDocumentFlow(List<DocumentFlowBO> collection);

	/**
	 * 更新
	 *
	 * @param documentFlowBO
	 */
	int updateDocumentFlow(DocumentFlowBO documentFlowBO);
	int updateAllDocumentFlow(List<DocumentFlowBO> collection);

	/**
	 * 删除
	 *
	 * @param documentFlowId
	 */
	int deleteDocumentFlow(Long documentFlowId);

	/**
	 * 查找一个
	 *
	 * @param documentFlowId
	 * @return
	 */
	DocumentFlowBO getDocumentFlow(Long documentFlowId);

	/**
	 * 查找一个
	 *
	 * @param documentFlowQuery
	 * @return
	 */
	DocumentFlowBO getDocumentFlow(DocumentFlowQuery documentFlowQuery);

	/**
	 * 查找多个
	 *
	 * @param collection 标识集合
	 */
	List<DocumentFlowBO> listDocumentFlowById(Collection<Long> collection);

	/**
	 * 查找多个
	 *
	 * @param query 查找条件
	 */
	List<DocumentFlowBO> listDocumentFlow(DocumentFlowQuery query);

	/**
	 * 统计个数
	 *
	 * @param query 查找条件
	 */
	int countDocumentFlow(DocumentFlowQuery query);
}
